<?php
/** $Id: default_form.php 11917 2009-05-29 19:37:05Z ian $ */
	//defined( '_JEXEC' ) or die( 'Restricted access' );
	//$session = JFactory::getSession();
	//$app = JFactory::getApplication();
	//$template = JURI::base() . 'templates/' . $app->getTemplate();
	
	//$file = 'test.txt';
	//file_put_contents($file, '--> In callback ', FILE_APPEND | LOCK_EX);
	
	$orderid = @$_GET['orderid'];
	$amount =  @$_GET['amount']/100;
	$txnid = @$_GET['tid'];
	$md5 = 1;
	
	file_put_contents($file, $orderid, FILE_APPEND | LOCK_EX);
	
	if($orderid>0){
		
		//if($is_user_caterer || $is_user)
		$this->data->activePaymentHistory($orderid);
		//echo "OK callback";
	}else{
		//header('HTTP/1.1 500 Internal Server Error');
		//header("Status: 500 Internal Server Error");
	}
?>